package net.hubbery.service;

import net.hubbery.dao.UserDao;

import javax.xml.stream.FactoryConfigurationError;
import java.net.PasswordAuthentication;

public class UserService {
    public boolean login(String account,String password){
        UserDao userDao = new UserDao();
        boolean login = userDao.login(account, password);
        if (login) {
            return true;
        }else{
            return false;
        }


    }

}
